package com.leo;

import javafx.beans.property.SimpleBooleanProperty;
import javafx.beans.property.SimpleDoubleProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;

/**
 * @ClassName StudentPro
 * @Description
 * @Author wangss
 * @date 2020.06.13 18:56
 * @Version 1.0
 */
public class StudentPro {

    private SimpleStringProperty name = new SimpleStringProperty();

    private SimpleIntegerProperty age = new SimpleIntegerProperty();

    private SimpleDoubleProperty score = new SimpleDoubleProperty();

    private SimpleBooleanProperty flag = new SimpleBooleanProperty();

    public StudentPro(String name, int age, double score, boolean flag) {
        this.name.set(name);
        this.age.set(age);
        this.score.set(score);
        this.flag.set(flag);
    }

    public String getName() {
        return name.get();
    }

    public SimpleStringProperty nameProperty() {
        return name;
    }

    public void setName(String name) {
        this.name.set(name);
    }

    public int getAge() {
        return age.get();
    }

    public SimpleIntegerProperty ageProperty() {
        return age;
    }

    public void setAge(int age) {
        this.age.set(age);
    }

    public double getScore() {
        return score.get();
    }

    public SimpleDoubleProperty scoreProperty() {
        return score;
    }

    public void setScore(double score) {
        this.score.set(score);
    }

    public boolean isFlag() {
        return flag.get();
    }

    public SimpleBooleanProperty flagProperty() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag.set(flag);
    }
}
